// 生产环境独有的配置
let path = require('path')
let common = require('./webpack.common');
let {merge}  = require('merge');
// Object.assign() 只能合并一层对象
module.exports = merge(common,{
    mode: 'production',
    output: {
        filename: "js/[name].bundle.min.js",
        path: path.join(process.cwd(), './dist'),
        clean: true, 
    },
}) 